#include<iostream>
using namespace std;

void xprintf()
{
  cout << "调用xprintf()"<< endl;
}

template<typename T ,typename ...Args>
void xprintf(const T& val,Args &&...args)
{
   cout << val << endl;
   if(sizeof ...(args) > 0)
      xprintf(std::forward<Args>(args)...);
   else 
     cout << endl;
}


int main()
{
  xprintf(1,2,3);
  return 0;
}



